package cn.shop.ylp;

import javax.validation.constraints.NotEmpty;

public class User {
    private Integer id;
    @NotEmpty(message = "电话号码不能为空")
    private String phone;
    @NotEmpty(message = "密码不能为空")
    private String pd;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPd() {
        return pd;
    }

    public void setPd(String pd) {
        this.pd = pd == null ? null : pd.trim();
    }
}